<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">
    <ui:define name="content">
        <div class="Container100 NoIndent">

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Form Elements</h2>
                    <div class="SeparatorFull"/>
                    <p:panelGrid columns="4"
                                 columnClasses="ui-grid-col-2,ui-grid-col-4,ui-grid-col-2,ui-grid-col-4"
                                 layout="grid"
                                 styleClass="ui-panelgrid-blank"
                                 style="border:0px none; background-color:transparent;">
                        <p:outputLabel for="input" value="Input"/>
                        <p:inputText id="input"/>

                        <p:outputLabel for="area" value="Textarea"/>
                        <p:inputTextarea id="area" cols="20" rows="3"/>

                        <p:outputLabel for="calendar" value="Calendar"/>
                        <p:calendar id="calendar"/>

                        <p:outputLabel for="ac" value="Auto Complete"/>
                        <p:autoComplete id="ac" completeMethod="#{autoCompleteView.completeText}" />

                        <p:outputLabel for="mask" value="Mask"/>
                        <p:inputMask id="mask" mask="99/99/9999"/>

                        <p:outputLabel for="pwd" value="Password"/>
                        <p:password id="pwd" />

                        <p:outputLabel for="keyboard" value="Keyboard"/>
                        <p:keyboard id="keyboard" />

                        <p:outputLabel for="onemenu" value="OneMenu"/>
                        <p:selectOneMenu id="onemenu">
                            <f:selectItem itemLabel="Select One" itemValue="" />
                            <f:selectItem itemLabel="Xbox One" itemValue="Xbox One" />
                            <f:selectItem itemLabel="PS4" itemValue="PS4" />
                            <f:selectItem itemLabel="Wii U" itemValue="Wii U" />
                        </p:selectOneMenu>

                        <p:outputLabel for="spinner" value="Spinner"/>
                        <p:spinner id="spinner"/>

                        <p:outputLabel for="slider" value="Slider"/>
                        <p:outputPanel>
                            <p:inputText id="slider"/>
                            <p:slider for="slider" />
                        </p:outputPanel>

                        <p:outputLabel for="radio" value="Radio"/>
                        <p:selectOneRadio id="radio" value="#{radioView.city}" layout="responsive" columns="2" style="margin:30px 0px;">
                            <f:selectItems value="#{radioView.cities}" var="c" itemLabel="#{city}" itemValue="#{city}"/>
                        </p:selectOneRadio>

                        <p:outputLabel for="chkbox" value="Checkbox"/>
                        <p:selectManyCheckbox id="chkbox" value="#{checkboxView.selectedCities}" layout="responsive" columns="2" style="margin:30px 0px;">
                            <f:selectItems value="#{checkboxView.cities}" var="city" itemLabel="#{city}" itemValue="#{city}" />
                        </p:selectManyCheckbox>

                        <p:outputLabel for="btn" value="Button" />
                        <p:commandButton id="btn" value="Edit" icon="fa fa-edit Fs14 White" type="button" style="max-width:150px;"/>

                        <p:outputLabel for="spbtn" value="SplitButton" />
                        <p:splitButton id="spbtn" value="Save" type="button" icon="ui-icon-check fa fa-check Fs14 White" style="max-width:150px;">
                            <p:menuitem value="Update" url="#" icon="ui-icon-arrowrefresh-1-w fa fa-arrow-circle-up" />
                            <p:menuitem value="Delete" url="#" icon="ui-icon-close fa fa-close" />
                            <p:separator />
                            <p:menuitem value="Homepage" url="http://www.primefaces.org/" icon="ui-icon-extlink fa fa-bank" />
                        </p:splitButton>

                        <p:outputLabel for="chkmenu" value="Checkbox Menu" />
                        <p:selectCheckboxMenu id="chkmenu" label="Cities">
                            <f:selectItems value="#{checkboxView.cities}" />
                        </p:selectCheckboxMenu>

                        <p:outputLabel for="booleanBtn" value="Boolean Button" />
                        <p:selectBooleanButton id="booleanBtn" onLabel="Yes" offLabel="No" onIcon="fa fa-check Fs14 White" offIcon="fa fa-close Fs14 White" style="max-width:150px;"/>

                        <p:outputLabel for="oneBtn" value="OneButton" />
                        <p:selectOneButton id="oneBtn">
                            <f:selectItem itemLabel="Spark" itemValue="Spark" />
                            <f:selectItem itemLabel="Ronin" itemValue="Ronin" />
                        </p:selectOneButton>

                        <p:outputLabel for="manyBtn" value="Many Button"/>
                        <p:selectOneButton id="manyBtn">
                            <f:selectItem itemLabel="Spark" itemValue="Spark" />
                            <f:selectItem itemLabel="Ronin" itemValue="Ronin" />
                            <f:selectItem itemLabel="Rio" itemValue="Rio" />
                        </p:selectOneButton>

                        <p:outputLabel for="listbox" value="Listbox"/>
                        <p:selectOneListbox id="listbox">
                            <f:selectItem itemLabel="Sentinel" itemValue="Sentinel" />
                            <f:selectItem itemLabel="Spark" itemValue="Spark" />
                            <f:selectItem itemLabel="Ronin" itemValue="Ronin" />
                            <f:selectItem itemLabel="Rio" itemValue="Rio" />
                            <f:selectItem itemLabel="Primus" itemValue="Primus" />
                        </p:selectOneListbox>

                        <p:outputLabel for="dialog2" value="Dialog" />
                        <p:commandButton id="dialog2" value="Dialog" icon="fa fa-home Fs14 White" type="button" onclick="PF('dlg').show()" style="max-width:150px;"/>
                    </p:panelGrid>

                    <p:dialog widgetVar="dlg" header="Login" draggable="false" resizable="false" responsive="true" >
                        <p:panelGrid columns="2" layout="grid" styleClass="ui-panelgrid-blank" columnClasses="ui-grid-col-4,ui-grid-col-8">
                            <h:outputLabel for="username" value="Username:" />
                            <p:inputText id="username" />

                            <h:outputLabel for="password" value="Password:" />
                            <p:password id="password" />

                            <f:facet name="footer">
                                <p:commandButton value="Login" type="button" onclick="PF('dlg').hide()"/>
                            </f:facet>
                        </p:panelGrid>
                    </p:dialog>
                </div>
            </div>

        </div>

        <div class="Container100 NoIndent">

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive DataTable</h2>
                    <div class="SeparatorFull"/>
                    <p:dataTable var="car" value="#{dtSelectionView.cars2}" reflow="true">
                        <f:facet name="header">
                            DataTable
                        </f:facet>

                        <p:column headerText="Id">
                            <h:outputText value="#{car.id}" />
                        </p:column>

                        <p:column headerText="Year">
                            <h:outputText value="#{car.year}" />
                        </p:column>

                        <p:column headerText="Brand">
                            <h:outputText value="#{car.brand}" />
                        </p:column>

                        <p:column headerText="Color">
                            <h:outputText value="#{car.color}" />
                        </p:column>
                    </p:dataTable>
                </div>
            </div>

        </div>

        <!-- Left column -->
        <div class="Container50 Responsive100 NoIndent">

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive DataGrid</h2>
                    <div class="SeparatorFull"/>
                    <p:dataGrid var="car"
                                value="#{dataGridView.cars}"
                                columns="3"
                                layout="grid"
                                rows="12"
                                paginator="true">
                        <!--currentPageTemplate:'({currentPage} of {totalPages})'-->
                        <f:facet name="header">
                            DataGrid
                        </f:facet>

                        <p:panel header="#{car.id}" style="text-align:center">
                            <h:panelGrid columns="1" style="width:100%">
                                <p:graphicImage name="demo/images/car/#{car.brand}.gif"/>

                                <h:outputText value="#{car.brand} - #{car.year}" />
                            </h:panelGrid>
                        </p:panel>
                    </p:dataGrid>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive Tree</h2>
                    <div class="SeparatorFull"/>
                    <p:tree value="#{treeSelectionView.root1}" var="doc">
                        <p:treeNode expandedIcon="ui-icon-folder-open" collapsedIcon="ui-icon-folder-collapsed">
                            <h:outputText value="#{doc.name}"/>
                        </p:treeNode>

                        <p:treeNode type="document" icon="ui-icon-document">
                            <h:outputText value="#{doc.name}" />
                        </p:treeNode>

                        <p:treeNode type="picture" icon="ui-icon-image">
                            <h:outputText value="#{doc.name}" />
                        </p:treeNode>

                        <p:treeNode type="mp3" icon="ui-icon-video">
                            <h:outputText value="#{doc.name}" />
                        </p:treeNode>
                    </p:tree>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive Menu</h2>
                    <div class="SeparatorFull"/>
                    <h:form>
                        <p:panelGrid columns="1" layout="grid" style="border:0px none; background-color:transparent;">
                            <p:menu toggleable="true">
                                <p:submenu label="Ajax">
                                    <p:menuitem value="Save" actionListener="#{menuView.save}" icon="ui-icon-disk fa fa-save Fs15" />
                                    <p:menuitem value="Update" actionListener="#{menuView.update}" icon="ui-icon-arrowrefresh-1-w fa fa-repeat Fs15"/>
                                </p:submenu>
                                <p:submenu label="Non-Ajax">
                                    <p:menuitem value="Delete" actionListener="#{menuView.delete}" ajax="false" icon="ui-icon-close fa fa-close Fs15"/>
                                </p:submenu>
                                <p:submenu label="Navigations">
                                    <p:menuitem value="External" url="http://www.primefaces.org/" icon="ui-icon-home fa fa-home Fs15"/>
                                    <p:menuitem value="Internal" icon="ui-icon-star fa fa-star Fs15"/>
                                </p:submenu>
                            </p:menu>
                        </p:panelGrid>
                    </h:form>
                </div>
            </div>

            <div class="Container100">
                <div class="Card">
                    <h2 class="CardBigTopic">PanelMenu</h2>
                    <div class="SeparatorFull"/>
                    <h:form>
                        <p:panelGrid columns="1" layout="grid" style="border:0px none; background-color:transparent;">
                            <p:panelMenu>
                                <p:submenu label="Ajax Menuitems">
                                    <p:menuitem value="Save" actionListener="#{menuView.save}" icon="fa fa-save Fs15" />
                                    <p:menuitem value="Update" actionListener="#{menuView.update}" icon="fa fa-refresh Fs15"/>
                                </p:submenu>
                                <p:submenu label="Non-Ajax Menuitem">
                                    <p:menuitem value="Delete" actionListener="#{menuView.delete}" ajax="false" icon="fa fa-close Fs15"/>
                                </p:submenu>
                                <p:separator />
                                <p:submenu label="Navigations" >
                                    <p:submenu label="Links">
                                        <p:submenu label="PrimeFaces">
                                            <p:menuitem value="Home" url="http://www.primefaces.org/" icon="fa fa-home Fs15" />
                                            <p:menuitem value="Docs" url="http://www.primefaces.org/documentation" icon="fa fa-file Fs15" />
                                            <p:menuitem value="Download" url="http://www.primefaces.org/downloads" icon="fa fa-download Fs15" />
                                            <p:menuitem value="Support" url="http://www.primefaces.org/support" icon="fa fa-ticket Fs15" />
                                        </p:submenu>
                                    </p:submenu>
                                    <p:menuitem value="Mobile" icon="fa fa-mobile Fs15" />
                                </p:submenu>
                            </p:panelMenu>
                        </p:panelGrid>
                    </h:form>
                </div>
            </div>

        </div>

        <!-- Right column -->
        <div class="Container50 Responsive100 NoIndent">

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive PickList</h2>
                    <div class="SeparatorFull"/>
                    <p:pickList id="pickList"
                                value="#{pickListView.cities}"
                                var="cities"
                                responsive="true"
                                itemLabel="#{cities}"
                                itemValue="#{cities}"
                                effect="fade"
                                effectSpeed="fast"
                                showSourceControls="true"
                                showTargetControls="true"
                                showSourceFilter="true"
                                showTargetFilter="true"
                                filterMatchMode="contains"
                                moveUpLabel="Move Up"
                                moveTopLabel="Move Top"
                                moveDownLabel="Move Down"
                                moveBottomLabel="Move Bottom"
                                addLabel="Add"
                                addAllLabel="Add All"
                                removeLabel="Remove"
                                removeAllLabel="Remove All">
                        <f:facet name="sourceCaption">From</f:facet>
                        <f:facet name="targetCaption">To</f:facet>
                    </p:pickList>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive OrderList</h2>
                    <div class="SeparatorFull"/>
                    <p:orderList value="#{orderListView.cities}"
                                 var="city"
                                 responsive="true"
                                 controlsLocation="left"
                                 itemLabel="#{city}"
                                 itemValue="#{city}"
                                 moveUpLabel="Move Up"
                                 moveTopLabel="Move Top"
                                 moveDownLabel="Move Down"
                                 moveBottomLabel="Move Bottom">
                        <!--<p:ajax event="select" listener="#{orderListView.onSelect}" update="msgs"/>
                         <p:ajax event="unselect" listener="#{orderListView.onUnselect}" update="msgs"/>
                         <p:ajax event="reorder" listener="#{orderListView.onReorder}" update="msgs"/>-->

                        <f:facet name="caption">Cities List</f:facet>
                    </p:orderList>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive Accordion Panel</h2>
                    <div class="SeparatorFull"/>
                    <p:accordionPanel style="margin-top:20px">
                        <p:tab title="Godfather Part I">
                            <p:panelGrid columns="2" columnClasses="ui-grid-col-4,ui-grid-col-8" layout="grid" styleClass="ui-panelgrid-blank">
                                <h:outputText value="IMAGE" />
                                <h:outputText value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
                                              His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
                                              Through Michael's life the nature of the family business becomes clear.
                                              The business of the family is just like the head of the family, kind and benevolent to those who give respect,
                                              but given to ruthless violence whenever anything stands against the good of the family." />
                            </p:panelGrid>
                        </p:tab>
                        <p:tab title="Godfather Part II">
                            <p:panelGrid columns="2" columnClasses="ui-grid-col-2,ui-grid-col-10" layout="grid" styleClass="ui-panelgrid-blank">
                                <h:outputText value="IMAGE" />
                                <h:outputText value="Francis Ford Coppola's legendary continuation and sequel to his landmark 1972 film,
                                              The_Godfather, parallels the young Vito Corleone's rise with his son Michael's spiritual fall,
                                              deepening The_Godfather's depiction of the dark side of the American dream.
                                              In the early 1900s, the child Vito flees his Sicilian village for America after the local Mafia kills his family.
                                              Vito struggles to make a living, legally or illegally, for his wife and growing brood in Little Italy,
                                              killing the local Black Hand Fanucci after he demands his customary cut of the tyro's business.
                                              With Fanucci gone, Vito's communal stature grows." />
                            </p:panelGrid>
                        </p:tab>
                        <p:tab title="Godfather Part III">
                            <p:panelGrid columns="2" columnClasses="ui-grid-col-2,ui-grid-col-10" layout="grid" styleClass="ui-panelgrid-blank">
                                <h:outputText value="IMAGE" />
                                <h:outputText value="After a break of more than 15 years,
                                              director Francis Ford Coppola and writer Mario Puzo returned to the well for this third and final story of the fictional Corleone crime family.
                                              Two decades have passed, and crime kingpin Michael Corleone,
                                              now divorced from his wife Kay has nearly succeeded in keeping his promise that his family would one day be completely legitimate." />
                            </p:panelGrid>
                        </p:tab>
                    </p:accordionPanel>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive Panel</h2>
                    <div class="SeparatorFull"/>
                    <p:panel header="Panel" footer="Movie Details" style="margin-top:20px">
                        <p:panelGrid columns="2" columnClasses="ui-grid-col-4,ui-grid-col-8" layout="grid" styleClass="ui-panelgrid-blank">
                            <!--<h:outputText value="IMAGE" />-->
                            <i class="icon-card Fs100 Green"/>
                            <h:outputText value="The story begins as Don Vito Corleone, the head of a New York Mafia family, oversees his daughter's wedding.
                                          His beloved son Michael has just come home from the war, but does not intend to become part of his father's business.
                                          Through Michael's life the nature of the family business becomes clear.
                                          The business of the family is just like the head of the family, kind and benevolent to those who give respect,
                                          but given to ruthless violence whenever anything stands against the good of the family." />
                        </p:panelGrid>
                    </p:panel>
                </div>
            </div>

            <div class="Container100 ui-fluid">
                <div class="Card">
                    <h2 class="CardBigTopic">Responsive Carousel</h2>
                    <div class="SeparatorFull"/>
                    <p:carousel value="#{carouselView.cars}"
                                headerText="Carousel"
                                var="car"
                                itemStyle="text-align:center"
                                responsive="true">
                        <p:panelGrid columns="2"
                                     layout="grid"
                                     columnClasses="label,value"
                                     style="width:100%;margin:10px 0px"
                                     styleClass="ui-panelgrid-blank">
                            <f:facet name="header">
                                <p:graphicImage name="demo/images/car/#{car.brand}.gif"/>
                            </f:facet>

                            <h:outputText value="Id:" />
                            <h:outputText value="#{car.id}" />

                            <h:outputText value="Year" />
                            <h:outputText value="#{car.year}" />

                            <h:outputText value="Color:" />
                            <h:outputText value="#{car.color}" style="color:#{car.color}"/>

                            <h:outputText value="Price" />
                            <h:outputText value="\$#{car.price}" />
                        </p:panelGrid>
                    </p:carousel>
                </div>
            </div>

        </div>
    </ui:define>
</ui:composition>